package com.weixin.dao;

import com.weixin.bean.Fans;
import com.weixin.bean.FansExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface FansMapper {
    int countByExample(FansExample example);

    int deleteByExample(FansExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Fans record);

    int insertSelective(Fans record);

    List<Fans> selectByExample(FansExample example);

    Fans selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Fans record, @Param("example") FansExample example);

    int updateByExample(@Param("record") Fans record, @Param("example") FansExample example);

    int updateByPrimaryKeySelective(Fans record);

    int updateByPrimaryKey(Fans record);

    /**
     * 新增粉丝List插入
     * @param list
     * @return
     */
    int insertNewFansList(List<Fans> list);
/**
 * 取消关注粉丝修改状态
 */
    int updataByFansList(List<Fans> list);

}